package com.loie.xcx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.loie.xcx.model.bo.UserInfoAuthorityBO;
import com.loie.xcx.model.bo.SysRoleBO;
import com.loie.xcx.model.bo.SystemBO;
import com.loie.xcx.model.bo.UserInfoBO;

import java.util.List;


/**
 * @author zhl
 */
public interface SystemMapper extends BaseMapper<SystemBO> {

    UserInfoAuthorityBO getAuthorityInfoByOpenId(String openId);


    String getSecretByAppId(String appId);

    UserInfoBO getUserInfoByPhone(String phone);

    UserInfoBO getUserInfoByOpenId(String openId);

    int setUserInfoWxByOpenId(UserInfoBO userInfoBO);

    int delUserInfoWxByOpenId(String openId);

    List<SysRoleBO> getSysRoleByOpenId(String openId);
}
